package com.example.book.beans;

public class FXNewsProvider {
    DowJonesNewsListener newsListener;
    DowJonesNewsPersister newsPersister;
    FXNewsProvider(DowJonesNewsListener newsListener, DowJonesNewsPersister newsPersister) {
        this.newsListener = newsListener;
        this.newsPersister = newsPersister;
    }

    public void getAndPersistNews() {
        this.newsListener.sayHello();
    }
}
